package com.hxkj.client.service;

import com.hxkj.domain.po.LabelTags;
import com.hxkj.domain.po.Resources;
import com.hxkj.domain.po.ResourcesTree;
import com.platform.common.domain.result.ResultDataStruct;
import com.platform.common.domain.result.ResultMessageStruct;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @author YAOSY
 * @create 2018年7月20日17:45:26
 * @desc 标签管理
 **/

@FeignClient(name = "cms-management")
public interface LabelManagementServiceClient {


    /**
     * 新增
     * @param labelTags 标签管理
     * @throws Exception
     */
    @RequestMapping(value = "/labelManagement/save", method = RequestMethod.POST,consumes = "application/json;charset=UTF-8")
    void save(@RequestBody LabelTags labelTags) throws Exception;



    /**
     * 获取单条数据
     * @param labelTags
     * @throws Exception
     */
    @RequestMapping(value = "/labelManagement/get", method = RequestMethod.POST,consumes = "application/json;charset=UTF-8")
    ResultDataStruct<LabelTags> get(@RequestBody LabelTags labelTags) throws Exception;


    /**
     * 列表
     *
     * @param labelTags
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "/labelManagement/getLabelTags", method = RequestMethod.POST, consumes = "application/json;charset=UTF-8")
    ResultDataStruct<List<LabelTags>> getLabelTags(@RequestBody LabelTags labelTags) throws Exception;


    /**
     * 修改
     *
     * @param labelTags
     * @throws Exception
     */
    @RequestMapping(value = "/labelManagement/modify", method = RequestMethod.POST,consumes = "application/json;charset=UTF-8")
    ResultMessageStruct modify(@RequestBody LabelTags labelTags) throws Exception;


    /**
     * 删除
     *
     * @param labelTags
     * @throws Exception
     */
    @RequestMapping(value = "/labelManagement/remove", method = RequestMethod.POST,consumes = "application/json;charset=UTF-8")
    ResultMessageStruct remove(@RequestBody LabelTags labelTags) throws Exception;


}
